import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { environment } from '@env/environment';
import { LayoutPassportComponent } from './layout/passport/passport.component';
import { UserLoginComponent } from './web/passport/login/login.component';
import { UserRegisterComponent } from './web/passport/register/register.component';
import { UserRegisterResultComponent } from './web/passport/register-result/register-result.component';
import { LayoutDefaultComponent } from './layout/default/default.component';
import { LayoutFullScreenComponent } from './layout/fullscreen/fullscreen.component';
import { DashboardComponent } from './web/dashboard/dashboard.component';
import { DashboardWorkplaceComponent } from './web/dashboard/workplace/workplace.component';
import { MobileDefaultComponent } from './layout/mobile/mobile.component';

const routes: Routes = [
    { 
        path: '',
        component: MobileDefaultComponent,
        children: [
            {path: '', redirectTo: 'mobile', pathMatch: 'full' },
            {
                path: 'mobile',
                loadChildren: './mobile/mobile.routes.module#MobileRoutesModule',
            }
        ]
    }
    
    
];

@NgModule({
    imports: [RouterModule.forRoot(routes, { useHash: environment.useHash })],
    exports: [RouterModule]
  })
export class RouteRoutingModule { }
